﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WFASmartketing.REPORTES
{
    public partial class WFComprobanteVenta : Form
    {
        private int pk=0;
        public WFComprobanteVenta(int pk)
        {
            InitializeComponent();
            this.pk = pk; 
            this.venta_ComprobanteVentaTableAdapter.Fill(this.venta_ComprobanteVentaDS.venta_ComprobanteVenta, pk);
            this.reportViewer1.RefreshReport();
        }

        private void ComprobanteVenta_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'ComprobanteRetiroCajaDS.comprobante_retirocaja' table. You can move, or remove it, as needed.
            //  this.venta_ComprobanteVentaTableAdapter.Fill(this.venta_ComprobanteVentaDS.venta_ComprobanteVenta,pk);
           this.venta_ComprobanteVentaTableAdapter.Fill(this.venta_ComprobanteVentaDS.venta_ComprobanteVenta,pk);
              this.reportViewer1.RefreshReport();
        }

        private void reportViewer1_Load(object sender, EventArgs e)
        {

        }
    }
}
